package com.wantup.remote.client;

import javax.swing.*;
import java.awt.*;

/** 图片展示面板
 * @author wangshangyi
 * @version V1.0  2020/8/14 11:01
 */
public class MyPanel extends JPanel {
    private Image image;

    public Image getImage() {
        return image;
    }

    public void setImage(Image image) {
        this.image = image;
    }

    public MyPanel() {
    }

    public MyPanel(Image image)
    {
        this.image=image;
    }

    //图形绘制
    public void paintComponent(Graphics g)
    {
        g.drawImage(image, 0, 0, null);
    }
}
